package com.lion.common.base.json;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * @author Chris Chan
 * Create On 2025/8/4 下午4:48
 * Use for:
 * Explain:
 */
public class GsonFactory {
    /**
     * 获取 严格检查的Gson 实例
     * @return
     */
    public static Gson getStrictGson() {
        return new GsonBuilder()
                .registerTypeAdapterFactory(new StrictTypeAdapterFactory(true))
                .create();
    }
}
